/*
 *  Model.h
 *  graphics1
 *
 *  Created by Javier Quevedo on 12/7/08.
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
 *
 */
#if defined(WIN32)
#include <GL/glut.h>
#else
#include <GLUT/glut.h>
#endif
#import "Texture.h"
typedef struct LayerStruct
	{
		int	vertexCount;
		char modelType[20];
		float r,g,b, alpha;
		float *vertexX;
		float *vertexY;
		float *vertexZ;
		
		float *normalX;
		float *normalY;
		float *normalZ;
		
		
	}LayerStruct;

typedef struct ModelPart{
	int layerCount;
	LayerStruct **layers;
	Texture *texture;
	
	
} ModelPart;

typedef struct Model
{
	int	partCount;
	ModelPart **modelParts;
}Model;
	

void LoadModel(Model *modelElement , char  **modelFiles, int numFiles);
void drawModel (Model *modelElement);
void renderPart (ModelPart *part);
